package com.tupu.entity.admin;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 关系构建 实体类
 */
@Data
@TableName("relation_building")
public class RelationBuildingInfo {
    //主键自增
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //起始实体id
    private Long startId;

    @TableField(exist = false)
    private String startName;

    //结束实体id
    private Long endId;

    @TableField(exist = false)
    private String endName;

    //关系id
    private Long relationId;

    @TableField(exist = false)
    private String relationName;

    //图谱id
    private Long nodeId;

    @TableField(exist = false)
    private String knowledgeName;
}
